<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


//查看单篇文章详情
// Route::get('article/{id}','ArticlesController@show');
// //添加一篇文章
// Route::get('add_article','ArticlesController@add');
// //修改一篇文章
// Route::get('edit_article','ArticlesController@add');

//页面总览
// Route::get('article','ArticlesController@article');
// Route::post('api/create','ArticlesController@create');
// Route::post('api/update','ArticlesController@update');
// Route::get('api/delete','ArticlesController@delete');
Route::get('/','ArticleController@index');
Route::resource('article','ArticleController');
Route::get('/hello','ArticleController@hello');


//用户添加路由
// Route::get('user/add','UserController@add');
// Route::post('user/store','UserController@store');
// Route::get('user/index','UserController@index');
// Route::get('user/edit/{id}','UserController@edit');

// Route::get('welcome',function() {
//   return view('welcome');
// });


// Route::get('user/select','UserController@select');
// Route::put('user/update','UserController@update');


// Route::resource('test','TestController');

